package com.note.controller;

import com.note.model.User;
import com.note.util.ShiroUtil;

/**
 * Created by ADMIN on 2018/3/27.
 */
public class BaseController {
    public User getUser() {
        return ShiroUtil.getUser();
    }

    public Long getUserId() {
        return getUser().getUserId();
    }

    public String getUsername() {
        return getUser().getUsername();
    }
}
